﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PcapDotNet.Core;
using PcapDotNet.Packets;

namespace MolyMade.Mute
{
    public static class SendPacket
    {
        public static void SendAPacket(PacketDevice device,Packet packet)
        {
            using (PacketCommunicator communicator = device.Open(100,PacketDeviceOpenAttributes.Promiscuous, 1000))
            {
                communicator.SendPacket(packet);
            }
        }
    }
}
